From e3924911b5a076cfce4dd0163cd7ede6aa021c86 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 11 Sep 2008 19:31:04 +0000 Subject: [PATCH] =?utf8?q?Bug=20536542=20=E2=80=93=20gtk=5Flist=5Fstore=5F?= =?utf8?q?set()=20documentation=20doesn't=20say=20whether?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-09-11 Cosimo Cecchi Bug 536542 – gtk_list_store_set() documentation doesn't say whether values are copied. * gtk/gtkliststore.c: * gtk/gtktreestore.c: Explicitly mention in the docs that gtk_[list,tree]_store_set copies or keep a reference of the values. svn path=/trunk/; revision=21349 --- ChangeLog | 10 ++++++++++ gtk/gtkliststore.c | 1 + gtk/gtktreestore.c | 1 + 3 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 45587fda7c..6ac5bf06dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-09-11 Cosimo Cecchi + + Bug 536542 – gtk_list_store_set() documentation doesn't say whether + values are copied. + + * gtk/gtkliststore.c: + * gtk/gtktreestore.c: + Explicitly mention in the docs that gtk_[list,tree]_store_set copies + or keep a reference of the values. + 2008-09-11 Marek Kasik Bug 551378 - Print dialog: should try UDS when fetching PPD for diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index 24d69f2355..e24cd76dd9 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -922,6 +922,7 @@ gtk_list_store_set_valist (GtkListStore *list_store, * The list is terminated by a -1. For example, to set column 0 with type * %G_TYPE_STRING to "Foo", you would write gtk_list_store_set (store, iter, * 0, "Foo", -1). + * The value will be copied or referenced by the store if appropriate. **/ void gtk_list_store_set (GtkListStore *list_store, diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 4175d4949d..daf9e1a8d8 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -1070,6 +1070,7 @@ gtk_tree_store_set_valist (GtkTreeStore *tree_store, * The list is terminated by a -1. For example, to set column 0 with type * %G_TYPE_STRING to "Foo", you would write * gtk_tree_store_set (store, iter, 0, "Foo", -1). + * The value will be copied or referenced by the store if appropriate. **/ void gtk_tree_store_set (GtkTreeStore *tree_store, -- 2.30.2